package com.library.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author 至尊伍人组
 * @since 2018-09-30
 */
@Data
public class Lesson extends Model<Lesson> {

    private static final long serialVersionUID = 1L;

    /**
     * 课程编号
     */
    @TableId ( value = "lessonId", type = IdType.AUTO )
    private Integer lessonId;
    /**
     * 课程类型
     */
    private String lessonType;
    /**
     * 课程名称
     */
    private String lessonName;

    @Override
    protected Serializable pkVal() {
        return this.lessonId;
    }

}
